package com.mccken.demo;

public class Test {
    
    public static Test s;
    public static String str;
    
    public static  void main(String[] args) {
    	Test a = new Test(); // 对象1
    	a.s = new Test(); 	// 对象2
	    
//    	a = null;

    }

	public void exampleMethod1() {
		Test test = null;
		for (int i = 0; i < 100000; i++) {
			test = new Test();	
		}
		
		
	}

	public void exampleMethod2() {
		for (int i = 0; i < 100000; i++) {
			Test test = new Test();
		}
	}
	
}